package com.blrs.service.honor.impl;

import java.util.ArrayList;
import java.util.List;

import com.blrs.service.honor.IHonerManagementAttachmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.blrs.mapper.HonerManagementAttachmentMapper;
import com.blrs.domain.HonerManagementAttachment;

/**
 * 荣誉资质附件Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-19
 */
@Service
public class HonerManagementAttachmentServiceImpl implements IHonerManagementAttachmentService
 {
    @Autowired
    private HonerManagementAttachmentMapper honerManagementAttachmentMapper;

    /**
     * 查询荣誉资质附件
     * 
     * @param id 荣誉资质附件主键
     * @return 荣誉资质附件
     */
    @Override
    public List<HonerManagementAttachment> selectHonerManagementAttachmentById(String id)
    {
        return honerManagementAttachmentMapper.selectHonerManagementAttachmentById(id);
    }

    /**
     * 查询荣誉资质附件列表
     * 
     * @param honerManagementAttachment 荣誉资质附件
     * @return 荣誉资质附件
     */
    @Override
    public List<HonerManagementAttachment> selectHonerManagementAttachmentList(HonerManagementAttachment honerManagementAttachment)
    {
        return honerManagementAttachmentMapper.selectHonerManagementAttachmentList(honerManagementAttachment);
    }

    /**
     * 新增荣誉资质附件
     * 
     * @param honerManagementAttachment 荣誉资质附件
     * @return 结果
     */
    @Override
    public int insertHonerManagementAttachment(HonerManagementAttachment honerManagementAttachment)
    {
        return honerManagementAttachmentMapper.insertHonerManagementAttachment(honerManagementAttachment);
    }

    /**
     * 修改荣誉资质附件
     * 
     * @param honerManagementAttachment 荣誉资质附件
     * @return 结果
     */
    @Override
    public int updateHonerManagementAttachment(HonerManagementAttachment honerManagementAttachment)
    {
        return honerManagementAttachmentMapper.updateHonerManagementAttachment(honerManagementAttachment);
    }

    /**
     * 批量删除荣誉资质附件
     * 
     * @param ids 需要删除的荣誉资质附件主键
     * @return 结果
     */
    @Override
    public int deleteHonerManagementAttachmentByIds(String[] ids)
    {
        return honerManagementAttachmentMapper.deleteHonerManagementAttachmentByIds(ids);
    }

    /**
     * 删除荣誉资质附件信息
     * 
     * @param id 荣誉资质附件主键
     * @return 结果
     */
    @Override
    public int deleteHonerManagementAttachmentById(String id)
    {
        return honerManagementAttachmentMapper.deleteHonerManagementAttachmentById(id);
    }

    @Override
    public void insertHonerAttachmentBatch(ArrayList<HonerManagementAttachment> list) {
         honerManagementAttachmentMapper.insertHonorAttachmentBatch(list);
    }

    @Override
    public List<HonerManagementAttachment> selectHonerManagementByIds(String[] ids) {
       return honerManagementAttachmentMapper.selectHonerManagementAttachmentByIds(ids);
    }
}
